package epinions;

import java.io.IOException;

import polarizedMF.Step0_TraditionalMF;
import data.MatrixSize;
import data.Param;

public class Step0_TraditionalMF_epinions {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		MatrixSize size = new MatrixSize(22166, 296277);
		Param param = new Param((byte) 5, 0.02, 0.4);
		String fold = "5";
		double[] epsilons = { 0.0, 0.05, 0.1, 0.15, 0.2, 0.25 };
		double[] idealRMSE = new double[6];
		for (int i=0; i<6; i++) {
			double epsilon = epsilons[i];
			Step0_TraditionalMF step0 = new Step0_TraditionalMF(
					"D:\\epinions\\epinions\\", epsilon, fold, size, param);
			idealRMSE[i] = step0.getIdealRMSE();
		}

		for (int i=0; i<6; i++) {
			System.out.printf("%.3f\n", idealRMSE[i]);
		}
	}
}
